package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.MediaAdvertsing;
import com.weixing.mall.provider.model.query.FrontMediaAdvertSingQuery;
import com.weixing.mall.provider.model.query.MediaAdvertsingQuery;
import com.weixing.mall.provider.model.vo.FrontMediaAdvertsingDetilVo;
import com.weixing.mall.provider.model.vo.FrontMediaAdvertsingVo;
import com.weixing.mall.provider.model.vo.ads.MediaAdvertsingVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 广告模块-媒体广告表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface MediaAdvertsingMapper extends BaseMapper<MediaAdvertsing> {

    IPage<MediaAdvertsingVo> selectOfPage(@Param("pg") Page page,@Param("qs") MediaAdvertsingQuery mediaAdvertsingQuery);

    List<MediaAdvertsingVo> selectOfPage(@Param("qs")MediaAdvertsingQuery mediaAdvertsingQuery);

    void changeStaus(Long id, int value);

    IPage<FrontMediaAdvertsingVo> selectFrontOfPage(@Param("pg")Page page, @Param("qs")FrontMediaAdvertSingQuery frontMediaAdvertSingQuery, @Param("agentIds") String agentIds);

    FrontMediaAdvertsingDetilVo selectFrontDetil(Long id);
}
